{% extends "analysis_plugins/general_information.html" %}

{% block analysis_result_details %}

    {% for key, value in analysis_result.items() | sort %}
        {% if value in [True, 'enabled', 'fully enabled'] %}
            {% set bs_class = 'success' %}
        {% elif value in [False, 'disabled'] %}
            {% set bs_class = 'danger' %}
        {% else %}
            {% set bs_class = 'warning' %}
        {% endif %}

        <tr>
            <td>{{ key }}</td>
            <td class="table-{{ bs_class }}">
                {% if value == True %}
                    enabled
                {% elif value == False %}
                    disabled
                {% else %}
                    {{ value }}
                {% endif %}
            </td>
        </tr>
    {% endfor %}

{% endblock %}
